home *** CD-ROM | disk | FTP | other *** search
- on WAITFORROW
- global GRIDH, NB, NBB, GRIDY, GRIDN, DT, PUSHED, PUSHON, TURN, ROW, DI, STARTED, FINALROW, FINALDIR, COMPLAY, NWGAME, GAMELEN, BLUESCORE, REDSCORE
- set PUSHED to 0
- if TURN >= 2 then
- set TURN to 0
- end if
- set TURN to TURN + 1
- if (STARTED = 1) and (NWGAME = 0) then
- SHOWPUSHER()
- end if
- if (STARTED = 1) and (NWGAME = 0) then
- SHIFTROW()
- end if
- if TURN = 2 then
- if NWGAME = 0 then
- MOVEBLUE()
- MOVERED()
- MOVEBLUE()
- MOVERED()
- end if
- if BLUESCORE >= GAMELEN then
- exit
- end if
- if REDSCORE >= GAMELEN then
- exit
- end if
- if COMPLAY = 0 then
- if STARTED <> 0 then
- COMPUTER()
- set ROW to FINALROW
- set DI to FINALDIR
- set TURN to 1
- SHIFTROW()
- set TURN to 1
- end if
- end if
- end if
- if TURN = 1 then
- RESETALLMEN()
- MOVERED()
- MOVEBLUE()
- MOVERED()
- MOVEBLUE()
- end if
- if BLUESCORE >= GAMELEN then
- exit
- end if
- if REDSCORE >= GAMELEN then
- exit
- end if
- set STARTED to 1
- set PUSHON to 0
- set PUSHED to 0
- end
-